@import './variables.scss';
@import './transition.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// 主要内容区域
.app-container {
  padding: 20px;
}

// 卡片样式
.card-container {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

// 表格工具栏
.table-toolbar {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

// 表单样式
.form-container {
  width: 600px;
  margin: 0 auto;
  padding: 20px;
}

// 分页样式
.pagination-container {
  margin-top: 20px;
  text-align: right;
}

// 搜索表单样式
.search-form {
  margin-bottom: 20px;
  .el-form-item {
    margin-bottom: 10px;
  }
}

// 必填项标记
.required-label {
  &:before {
    content: '*';
    color: #F56C6C;
    margin-right: 4px;
  }
}

// 状态标签
.status-tag {
  &.success {
    color: #67C23A;
  }
  &.warning {
    color: #E6A23C;
  }
  &.danger {
    color: #F56C6C;
  }
  &.info {
    color: #909399;
  }
}